﻿@model List<Topic>
@{
	Layout = null;
    Response.ContentType = "text/xml";
}
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
		<title>@T("Latest threads on all forums")</title>
		<link>@this.Domain</link>
		<description>@T("Latest threads on all forums at {0}", this.Domain)</description>
		@foreach (Topic t in this.Model)
		{
		<item>
			<title>@t.Title</title>
			<link>@(this.Domain + Url.Action("ShortUrl", "Topics", new { id = t.Id }))</link>
			<guid>@(this.Domain + Url.Action("ShortUrl", "Topics", new { id = t.Id }))</guid>
			<description>@Utils.RemoveTags(t.Description)</description>
			<pubDate>@t.Date.ToApplicationDateTime().ToString("r", new System.Globalization.CultureInfo("en-US"))</pubDate>
		</item>
		}
	</channel>
</rss>